<template>
    <el-pagination
      @size-change="$emit('sizechange',$event)"
      @current-change="$emit('pagechange',$event)"
      :current-page="pagenum"
      :page-sizes="[10, 20, 30, 100]"
      :page-size="pagesize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total" background>
      >
    </el-pagination>
</template>

<script>
export default {
  name: 'Pagination',
  props: {
    pagesize: {
      type: Number,
      default: 10
    },
    pagenum: {
      type: Number,
      default: 1
    },
    total: {
      type: Number,
      total: 0
    }
  }
}
</script>

<style>

</style>
